﻿using System.Linq;
using System.Web.Mvc;
using ES.Models;

namespace ES.Controllers
{
    public class HomeController : BaseController
    {
       
        public ActionResult Index()
        {
            ViewBag.Title = "Anasayfa";
            return View(new HomeVm
                            {
                                
                                ProductList=Db.Products.ToList()
                                
                            });
        }

    }
}
